﻿using FluentNHibernate.Cfg.Db;

namespace ECommerce.Web.NHibernate
{
    public static class PersistenceOptions
    {
        public static IPersistenceConfigurer Default()
        {
            return MsSqlConfiguration
                .MsSql2005
                .ConnectionString(x => x.FromConnectionStringWithKey("ConnectionString"))
                .DefaultSchema("dbo");
        }

        public static IPersistenceConfigurer InMemory()
        {
            return SQLiteConfiguration
                .Standard
                .InMemory()
                .ShowSql();
        }
    }
}
